﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace OpenCompiler.Tests.Specs_for_scanner
{
	[TestClass]
	public class When_scanning_for_genericparameters
	{
		[TestMethod]
		public void Generics_on_class_is_recognized()
		{
			var sourceCode = "public class MyClass<T> {}";
		}

		[TestMethod]
		public void Implementing_a_generic_type_with_single_generic_parameter_generics_are_recognized()
		{
			var sourceCode = "public class MyClass : SomeOtherClass<MyClass> {}";
		}

		[TestMethod]
		public void Generics_on_method_is_recognized()
		{
			var sourceCode = "public void MyMethod<T>(T input) {}";
		}

		[TestMethod]
		public void Calling_a_generic_method_generic_parameters_are_recognized()
		{
			var sourceCode = "SomeStaticClass.MyMethod<string>(\"input\");";
		}
	}
}
